package org.gap.wizards.items.effects;

public class LimitedUse implements Uses {
	private int count;

	private LimitedUse(int count) {
		this.count = count;
		
	}

	@Override
	public void useItem() {
		count--;
	}

	@Override
	public boolean hasAvailableUses() {
		return count > 0;
	}

	public static Uses single() {
		return new LimitedUse(1);
	}

}
